﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace FreedomERP.Comm
{
    public class OrderDirection
    {
        public enum Direction { DESC, ASC };

        public static Direction ToDirection(string dir)
        {
            Direction result = (dir.ToLower().Trim() == "desc") ? Direction.DESC : Direction.ASC;
            return result;
        }
    }
}